'''
author:        Wang Chenyang <cy-wang21@mails.tsinghua.edu.cn>
date:          2025-07-17
Copyright © Department of Physics, Tsinghua University. All rights reserved

用于定义一次镜头中所涉及的DCS数据.
如果一场戏中有多个镜头，可以重命名保存该文件，

'''
import numpy as np
import os
import sys
LOCAL_FOLDER = os.path.dirname(os.path.abspath(__file__))
sys.path.append(LOCAL_FOLDER)

import DCS_main_script as DCS

#### User defined parameters ###
DCS.UE5_SCALING = 0.1 # 现实中的1m对应UE5中的多少cm
DCS.R_EARTH = 6371e3 # 地球半径

# DCS.COORD_TRANS = np.eye(2) # 坐标变换. 若x指向正东，y指向正北，则无须变换
DCS.COORD_TRANS = np.array([[0, 1], [1, 0]]) # UE5是左手系，即x指向正北，y指向正东，因此需要交换xy轴

# 是否反转姿态角
DCS.ROLL_REVERSE = False
DCS.PITCH_REVERSE = False
DCS.YAW_REVERSE = False

# 本次镜头中所用到的所有飞机的DCS数据. 
# 其中冒号左边是模型在UE5中的名称，冒号右边是DCS数据的CSV文件的绝对路径.
# 用到几架飞机就写几行，末尾别忘了加逗号
DCS.NAME_DATA_MAP = {
    "Red": "D:/tool-base/DCS-to-UE5/Tacview-CSV-Samples/A-4E (Viper) [Red].csv",
    "Blue": "D:/tool-base/DCS-to-UE5/Tacview-CSV-Samples/F-14A (Maverick & Goose) [Blue].csv"
}
DCS.SKIP_ROWS = 1   # CSV文件中需要跳过几行

DCS.SEQ_DIR = "/Game/Sequences/"    # Sequences的存储路径

DCS.MASTER_SEQUENCE_NAME = "DCS_Master_Shot_Sequence"

################################

DCS.main()